package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

//员工service接口 派送任务的接口
public interface EmployeeService {

    /**
     * 员工登录
     *
     * @param employeeLoginDTO
     * @return
     */
    //登录的功能
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    //添加的功能
    void addEmployyee(EmployeeDTO employeeDTO);


    //分页查询的功能
    PageResult pageSelect(EmployeePageQueryDTO employeePageQueryDTO);


    //员工账户启用停用的功能
    void statusStartOrStop(Long id, Integer status);

    //修改员工的功能
    void updateEmployyee(EmployeeDTO employeeDTO);

    //根据id查询员工的功能
    Employee selectById(Long id);

    //修改密码的功能
    void updatePassword(PasswordEditDTO passwordEditDTO);
}
